<?php $values = json_decode($site['vals']); ?>
<!DOCTYPE HTML>
<html>
  <head>
	<?php echo Yaf_View_Simple::render("header.phtml"); ?>
  </head>
  <body>
	<?php echo Yaf_View_Simple::render("menu.phtml"); ?>
	<div class="create">
	  <div class="content">
		<form role="form" class="form-horizontal" id="beform" action="upgeneral">
		  <input type="hidden" name="id" id="id" value="<?php echo $site['id'] ?>"/>
		  <fieldset>
			<div class="form-group">
			  <label class="col-lg-2 control-label" for="option">Option:</label>
			  <div class="col-lg-6">
				<input type="text" name="option" class="form-control" id="option" value="<?php echo $site['options']; ?>"/>
			  </div>
			</div>            
			<div class="form-group">
			  <label class="col-lg-2 control-label" for="title">Register:</label>
			  <div class="col-lg-6">
                <div class="redio">
                  <label>
				    <input type="radio" name="register" id="register" <?php if($values->register == 'on') echo 'checked'; ?> value="on"/> Yes
                  </label>
                </div>
                <div class="redio">
                  <label>
				    <input type="radio" name="register" id="register"  <?php if($values->register == 'off') echo 'checked'; ?> value="off"/> No
                  </label>                  
                </div>
			  </div>
			</div>
			<div class="form-group">
			  <label class="col-lg-2 control-label" for="page">Page Number:</label>
			  <div class="col-lg-6">
				<input type="text" name="page" class="form-control" id="page" value="<?php echo $values->page; ?>" />
			  </div>
			</div>            
		    <div class="form-group">
		      <label class="col-lg-2 control-label"></label>
		      <div class="col-lg-6">
		        <a  href="javascript:def.submit('#beform',null)" class="btn btn-primary">Submit</a>
		      </div>
            </div>
		  </fieldset>
		</form>

	  </div>
	</div>
	
	<!-- 模态框（Modal） -->
	<div class="modal fade" id="modal" tabindex="-1" role="dialog" aria-labelledby="modellabel" aria-hidden="true">
	  <div class="modal-dialog">
		<div class="modal-content">
		  <div class="modal-header bg-default">
			<div class="modal-title" id="modallabel">
			  <h5 class="text-primary">Signal</h5>
			</div>
		  </div>
		  <div class="modal-body bg-primary">
			
		  </div>
		  <div class="modal-footer">
			<button type="button" class="btn btn-default" data-dismiss="modal">Close
			</button>
		  </div>
		</div><!-- /.modal-content -->
	  </div><!-- /.modal -->
	</div>		

	<?php echo Yaf_View_Simple::render("footer.phtml"); ?>
  </body>
</html>
